/// address : {"email":"18780819629@163.com"}
/// age : 22
/// name : "SunJH"

class UserInfo {
  UserInfo({
      Address? address, 
      int? age, 
      String? name,}){
    _address = address;
    _age = age;
    _name = name;
}

  UserInfo.fromJson(dynamic json) {
    _address = json['address'] != null ? Address.fromJson(json['address']) : null;
    _age = json['age'];
    _name = json['name'];
  }
  Address? _address;
  int? _age;
  String? _name;

  Address? get address => _address;
  int? get age => _age;
  String? get name => _name;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_address != null) {
      map['address'] = _address?.toJson();
    }
    map['age'] = _age;
    map['name'] = _name;
    return map;
  }

}

/// email : "18780819629@163.com"

class Address {
  Address({
      String? email,}){
    _email = email;
}

  Address.fromJson(dynamic json) {
    _email = json['email'];
  }
  String? _email;

  String? get email => _email;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['email'] = _email;
    return map;
  }

}